#include "mainscence.h"
#include"startgame.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    startGame start;
    Mainscence w;

    QObject::connect(&start,SIGNAL(nextPage()),&w,SLOT(last()));//connect将start槽发出的信号nextPage，和last槽绑定

    start.show();
    return a.exec();
}
